package com.seecoder.BlueWhale.service;

import com.seecoder.BlueWhale.vo.CommentVO;
import com.seecoder.BlueWhale.vo.CommodityVO;
import com.seecoder.BlueWhale.vo.PageVO;

import java.util.List;

public interface CommodityService {
    PageVO<CommodityVO> searchCommodity(Float maxPrice, Float minPrice, List<Integer> categories, String name, int page, int pageSz);

    boolean changeQuantity(Integer ID, Integer newQuantity);

    CommodityVO create(CommodityVO commodityVO);

    CommodityVO info(int id);

    boolean updateRating(int id);

    List<CommentVO> getComment(int id);
}